import java.util.Scanner;

//在同一个类中,分别定义求两个整数的方法 和 三个小数之和的方法。 并执行代码，求出结果
public class Question5 {

    public static void main(String[] args) {

        int a, b;
        double x, y, z;

        Scanner sc = new Scanner(System.in);

        System.out.println("请分别输入要求和的两个整数，和要求和的三个小数：");
        a = sc.nextInt();
        b = sc.nextInt();
        x = sc.nextDouble();
        y = sc.nextDouble();
        z = sc.nextDouble();
        int sumInt = sum(a,b);
        double sumDouble = sum(x,y,z);

        System.out.println("两个整数的和为；"+sumInt);
        System.out.println("三个小数的和为："+sumDouble);

    }


    public static int sum(int a, int b) {

        int sum = a +b;
        return sum;

    }

    public static double sum(double a, double b,double c) {

        double sum = a +b +c;
        return sum;

    }

}
